home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / share / idl / orbit-1.0 / CosEventChannel.idl next >
Text File  |  2005-10-20  |  1KB  |  54 lines

  1. #ifndef _CosEventChannelAdmin_IDL_
  2. #define _CosEventChannelAdmin_IDL_
  3.  
  4. #pragma prefix "omg.org"
  5.  
  6. #include "CosEventComm.idl"
  7.  
  8. module CosEventChannelAdmin {
  9.     exception AlreadyConnected{};
  10.     exception TypeError{};
  11.  
  12.     interface ProxyPushConsumer: CosEventComm::PushConsumer {
  13.         void connect_push_supplier(in CosEventComm::PushSupplier push_supplier)
  14.             raises(AlreadyConnected);
  15.     };
  16.  
  17.     interface ProxyPullSupplier: CosEventComm::PullSupplier {
  18.         void connect_pull_consumer(in CosEventComm::PullConsumer pull_consumer)
  19.             raises(AlreadyConnected);
  20.     };
  21.  
  22.     interface ProxyPullConsumer: CosEventComm::PullConsumer {
  23.         void connect_pull_supplier(in CosEventComm::PullSupplier pull_supplier)
  24.             raises(AlreadyConnected, TypeError);
  25.     };
  26.  
  27.     interface ProxyPushSupplier: CosEventComm::PushSupplier {
  28.         void connect_push_consumer(in CosEventComm::PushConsumer push_consumer)
  29.             raises(AlreadyConnected, TypeError);
  30.     };
  31.  
  32.     interface ConsumerAdmin {
  33.         ProxyPushSupplier obtain_push_supplier();
  34.         ProxyPullSupplier obtain_pull_supplier();
  35.     };
  36.  
  37.     interface SupplierAdmin {
  38.         ProxyPushConsumer obtain_push_consumer();
  39.         ProxyPullConsumer obtain_pull_consumer();
  40.     };
  41.  
  42.     interface EventChannel {
  43.         ConsumerAdmin for_consumers();
  44.         SupplierAdmin for_suppliers();
  45.         void destroy();
  46.     };
  47.     
  48.     interface EventChannelFactory {
  49.         EventChannel new_event_channel();    
  50.     };
  51. };
  52.  
  53. #endif /* !_CosEventChannelAdmin_IDL_ */
  54.